package com.co.ud.icehome.tools;

import java.net.InetAddress;
import java.net.UnknownHostException;

public class CheckerIP {

	public static String getIp(String hostname) {
		hostname = "arduproject.dyndns.org";

		try {
			InetAddress ipaddress = InetAddress.getByName(hostname);
			System.out.println("IP address: " + ipaddress.getHostAddress());
		} catch (UnknownHostException e) {
			System.out.println("Could not find IP address for: " + hostname);
		}
		return hostname;
	}
}
